const WebpackMerge = require('webpack-merge');
const config = require('./config.common.js');
const targetConfig = {
	mode: 'production',
	devtool: 'source-map',
	entry: {
		background: {
			import: './src/app/background/index.dev.js',
		}
	},
	devServer: {
		open: false,
		static: {
			watch: false
		},
		devMiddleware: {
			writeToDisk: true
		},
		watchFiles: {
			paths: ['./src/app/manifest.json']
		},
		webSocketServer: false

	}
};

module.exports = WebpackMerge.merge(config, targetConfig);